﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected string source = "";
    protected string channel = "";
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!string.IsNullOrEmpty(Request.QueryString["source"]))
            source = Request.QueryString["source"];
        if (!string.IsNullOrEmpty(Request.QueryString["utm_source"]))
            source = Request.QueryString["utm_source"];

        if (!string.IsNullOrEmpty(Request.QueryString["utm_medium"]))
            channel = Request.QueryString["utm_medium"];
    }
    protected void button_start_Click(object sender, EventArgs e)
    {
        string url = string.Format("selectmodel.aspx?source={0}&channel={1}&utm_source={2}&utm_medium={3}",
            Request.QueryString["utm_source"], 
            Request.QueryString["utm_medium"],
            Request.QueryString["utm_source"],
            Request.QueryString["utm_medium"]
            );
        Response.Redirect(url);
    }
}